Code Cognitive Complexity: A New Measure

نویسنده

  • Jitender Kumar Chhabra
چکیده

There are different facets of software complexity, some of which have been computed using widely accepted metrics like cyclomatic complexity, data/information flow metrics, but very less attempts have been made to measure the cognitive aspect of the complexity. The human mind's efforts needed for the comprehension of the source code reflect a different dimension of complexity, which is being measured in this paper. There are two aspects of the readability of the source code. One of these is spatial aspect and the other is architectural aspect. This paper is an attempt to measure the cognitive complexity of the source code, by integrating the spatial distances, impact of control statements, and effect of input & output parameters. The proposed metric is evaluated against 5 different programs and also compared with standalone metrics to prove its usefulness.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Measurement of Complexity and Comprehension of a Program Through a Cognitive Approach

The inherent complexity of the software systems creates problems in the software engineering industry. Numerous techniques have been designed to comprehend the fundamental characteristics of software systems. To understand the software, it is necessary to know about the complexity level of the source code. Cognitive informatics perform an important role for better understanding the complexity o...

متن کامل

Effects of Task Complexity Increase on Computer-Mediated L2 Writing and Temporal Distribution of Cognitive and Metacognitive Processes

This study examined the effects of cognitive task complexity increase on the complexity, accuracy, and fluency (CAF) as well as the temporal distribution of the cognitive and metacognitive processes involved in computer-mediated L2 written production. To this end, the study employed a between-subjects experimental design with 85 EFL learners from a language learning institute in Iran. Participa...

متن کامل

A New Complexity Metric Based on Cognitive Informatics

In this paper, a new complexity metric based on cognitive informatics is proposed for object oriented(OO) code. This is the single metric, which covers cognitive complexity of the OO system, method complexity and complexity due to inheritance together. The proposed metric was evaluated against Weyuker set of measurement principles. It was found that seven Weyuker properties are satisfied by thi...

متن کامل

Generation of a New Complexity Dimension Scheme for Complexity Measure of Procedural Program

Software complexity measurement has been an agelong quandary in software engineering as the effort used to develop, comprehend, or retain the software depends on so many complicated factors. Measuring and controlling of complexity will have an important influence to improve productivity, quality and maintenance of software. So far, most of the researches have tried to identify and measure the c...

متن کامل

An Experiment to Measure the Cognitive Weights of Code Control Structures

Various measures of software complexity have been proposed over the years. More recently, cognitive complexity measures of software have been proposed as a complement to other more widely adopted measures that are primarily based on physical size and/or a systematic analysis of code. Many of these cognitive measures consider the notion of cognitive weight to be an integral part of code comprehe...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011